﻿// Copyright (c) egmkang wang. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace XServer.GrainInterfaces
{
    using System.Collections.Generic;
    using System.Threading.Tasks;
    using Orleans;

    /// <summary>
    /// 通过玩家OpenID, ServerID来获取玩家UID的Grain
    /// </summary>
    public interface IPlayerIDGrain : IGrainWithIntegerKey
    {
        /// <summary>
        /// 通过OpenID和ServerID来获取玩家UID
        /// </summary>
        /// <param name="openID">玩家的OpenID</param>
        /// <param name="serverID">服务器ID</param>
        /// <returns>返回玩家的UID和创建账号的时间</returns>
        Task<KeyValuePair<long, long>> GetPlayerIDByOpenID(string openID, long serverID);
    }
}
